package com.ly.blog2Word.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.ly.blog2Word.service.CommAdminService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * hystrix 默认降级熔断器实现
 * @author: lyMaster
 * @time: 2020/7/19 15:03
 */
@Service
public class CommAdminHystrixImpl implements CommAdminService {

    @RequestMapping("/admin/getLoginUserName")
    public String getLoginUserName() {
        return "sorry, /admin/hello service call failed.";
    }

    @Override
    @RequestMapping("/admin/saveVisitor")
    public JSONObject saveVisitor(String operation, String ip,String method) {
        return null;
    }
}
